import request from '@/utils/request'

/**
* DB块故障组分页查询
* @param {查询条件} data
*/
export function listFaultLargeGroup(query) {
  return request({
    url: 'formula/faultlargegroup/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增DB块故障组
* @param data
*/
export function addFaultLargeGroup(data) {
  return request({
    url: 'formula/faultlargegroup',
    method: 'post',
    data: data,
  })
}
/**
* 修改DB块故障组
* @param data
*/
export function updateFaultLargeGroup(data) {
  return request({
    url: 'formula/faultlargegroup',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取DB块故障组详情
* @param {Id}
*/
export function getFaultLargeGroup(id) {
  return request({
    url: 'formula/faultlargegroup/' + id,
    method: 'get'
  })
}

/**
* 删除DB块故障组
* @param {主键} pid
*/
export function delFaultLargeGroup(pid) {
  return request({
    url: 'formula/faultlargegroup/delete/' + pid,
    method: 'delete'
  })
}
